package com.ywq.app.biz;

import java.util.List;
import java.util.Map;

import com.ywq.app.domain.ArtReminder;
import com.ywq.app.domain.Channel;
import com.ywq.app.domain.Content;
import com.ywq.common.exception.AppBusinessException;
import com.ywq.common.page.PageModel;


public interface AuxContentBiz {
	/**
	 * 展览馆首页
	 * @param page
	 * @return
	 * @throws AppBusinessException
	 */
	public PageModel getIndexListByChannel(Integer page,String identifier) throws AppBusinessException ;
	/**
	 * 得到id
	 * @param mark
	 * @return
	 * @throws AppBusinessException
	 */
	public String getIdentifierByMark(String mark)throws AppBusinessException;
	/**
	 * 增加频道
	 * @param channel
	 * @throws AppBusinessException
	 */
	public void insertChannel(Channel channel) throws AppBusinessException;
	/**
	 * 
	 * @param id
	 * @return 频道详情
	 * @throws AppBusinessException
	 */
	public Channel getChannelById(String id)throws AppBusinessException;
	/**
	 * 更新频道
	 * @param channel
	 * @throws AppBusinessException
	 */
	public void updateChannel(Channel channel) throws AppBusinessException;
	/**
	 * 内容列表（频道）
	 */
	public PageModel getChannelContentListById(Integer page,String channel) throws AppBusinessException;
	
	/**
	 * 增加内容
	 */
	public void insertContent(Content content) throws AppBusinessException;
	
	
	/**
	 * 展览馆首页 轮播图
	 */
	public List<Content> getRoomByChannel(String mark,Integer num) throws AppBusinessException;
	
	public Content getStoryByArtistId(String id) throws AppBusinessException;
	
	public void deleteChannel(String identifier) throws AppBusinessException;
	
	public void deleteContent(String identifier) throws AppBusinessException;
	
	public Content getContentId(String id) throws AppBusinessException;
	
	public void updateContent(Content content) throws AppBusinessException;
	
	public PageModel getArtEmailGrid(Integer page,Integer pageSize,String type) throws AppBusinessException;
	
	public void updateArtReminder(ArtReminder artReminder) throws AppBusinessException;
	
	public void sendEmail(Map<String, Object> map) throws AppBusinessException;
	
	public Channel getChannelByMark(String mark)throws AppBusinessException;
}
